function person(name,age){
    this.name=name;
    this.age=age;
    this.greet=function(){
        return "hello my name is"+this.name+"and I am "+this.age+"years old"
    }
}
var person1=new person("约约",60) 
console.log(person1.greet());